package mysql

import "gorm.io/gorm"

type House struct {
	gorm.Model
	HouseName    string `gorm:"type:varchar(30)"`
	HouseAddress string `gorm:"type:varchar(30)"`
	HousePrice   int64  `gorm:"type:int(11)"`
}

func (h *House) HouseDetail(db *gorm.DB, id int64) error {
	return db.Debug().Where("id=?", id).First(h).Error
}
